export function formatTime(value) {
	if(!value){
		return ""
	}
    const sd = new Date(value);
    const year = sd.getFullYear();
    const month = formatNum(sd.getMonth() + 1);
    const date = formatNum(sd.getDate());
    const hours = formatNum(sd.getHours());
    const minutes = formatNum(sd.getMinutes());
    const seconds = formatNum(sd.getSeconds());
    const filterDate = `${year}-${month}-${date}  ${hours}:${minutes}:${seconds}`;
    return filterDate;
}
function formatNum(num) {
	if (num <= 9) {
	  return "0" + num;
	} else {
	  return num;
	}
}
